<form class="form-horizontal" id="do_recharge" method="post" action="<{:U('User/do_recharge')}>" style=" padding:15px">
    <div class="form-group">
        <div class="col-sm-3 control-label">充值金额：</div>
        <div class="col-sm-8">
            <input type="text"   name="money" placeholder="输入充值金额" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-3"></div>
        <div class="col-sm-8">
            <button  type="submit" class="btn-primary btn  border-radius-none btn-lg"     data-loading-text="提交中……">充值</button>
        </div>
    </div>
</form>
<script>
$(function(){
	$("#do_recharge").on("ajaxSubmitSuccess",function(event,content){
		   data= JSON.parse(content);
					if(data.error>0){
						 dialog(data.msg);
					}else{
						 hiApp.modal(data.msg);
					}
		    
	})
})
  
</script> 
